package com.jackeys.piaems.dao;

import com.jackeys.piaems.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * @InterfaceName: UserDao
 * @Description: 用户持久层接口
 * @Author: Jackeys
 * @Date: 2021-06-08 15:07
 * @Version: 1.0
 */
public interface UserDao {
    //查询用户信息
    List<User> getUserInfByAccount(String account);

    //登陆
    List<User> login(String account, String password);

    //注册用户信息
    Boolean register(String account, String password, String email);

    //修改用户密码
    Boolean forget(String email, String password);

    //查询邮箱是否被注册过
    Integer isEmailConflict(String email);

    //修改用户信息
    Boolean updateUserInfByAccount(String account, String name, Date birthday, String sex, Integer age, String phone, String sign, String headPortrait);

    //查询用户头像
    String selectHeadPortraitByAccount(String account);

}
